/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bio;


import java.util.LinkedHashMap;

/**
 *
 * @author erik
 */
public class Environment {
    private LinkedHashMap<String, BioObject> contents;
    
    private Environment() {
        
    }
    
    public static Environment getInstance() {
        return EnvironmentHolder.INSTANCE;
    }
    
    private static class EnvironmentHolder {

        private static final Environment INSTANCE = new Environment();
    }
    
    public void addToEnvironment(BioObject object) {
        contents.put(object.getClass().getName(), object);
    }
}
